package com.bincent.databases.mysql.bean;

import java.io.Serializable;
import java.util.Objects;

/**
 * @mail:414338069@qq.com
 * @description:
 * @author: chenhao
 * @create: 2020/6/28
 */
public class ChinaRegionBean implements Serializable {
    private Integer id;
    private Integer parentId;
    private Integer level;
    private String name;
    private String wholeName;
    private String lon;
    private String lat;
    private String cityCode;
    private String zipCode;
    private String areaCode;
    private String pinyin;
    private String simplePY;
    private String perPY;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWholeName() {
        return wholeName;
    }

    public void setWholeName(String wholeName) {
        this.wholeName = wholeName;
    }

    public String getLon() {
        return lon;
    }

    public void setLon(String lon) {
        this.lon = lon;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public String getSimplePY() {
        return simplePY;
    }

    public void setSimplePY(String simplePY) {
        this.simplePY = simplePY;
    }

    public String getPerPY() {
        return perPY;
    }

    public void setPerPY(String perPY) {
        this.perPY = perPY;
    }

    public ChinaRegionBean(Integer id, Integer parentId, Integer level, String name, String wholeName, String lon, String lat, String cityCode, String zipCode, String areaCode, String pinyin, String simplePY, String perPY) {
        this.id = id;
        this.parentId = parentId;
        this.level = level;
        this.name = name;
        this.wholeName = wholeName;
        this.lon = lon;
        this.lat = lat;
        this.cityCode = cityCode;
        this.zipCode = zipCode;
        this.areaCode = areaCode;
        this.pinyin = pinyin;
        this.simplePY = simplePY;
        this.perPY = perPY;
    }

    public ChinaRegionBean() {
    }

    @Override
    public String toString() {
        return "ChinaRegionBean{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", level=" + level +
                ", name='" + name + '\'' +
                ", wholeName='" + wholeName + '\'' +
                ", lon='" + lon + '\'' +
                ", lat='" + lat + '\'' +
                ", cityCode='" + cityCode + '\'' +
                ", zipCode='" + zipCode + '\'' +
                ", areaCode='" + areaCode + '\'' +
                ", pinyin='" + pinyin + '\'' +
                ", simplePY='" + simplePY + '\'' +
                ", perPY='" + perPY + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ChinaRegionBean that = (ChinaRegionBean) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(parentId, that.parentId) &&
                Objects.equals(level, that.level) &&
                Objects.equals(name, that.name) &&
                Objects.equals(wholeName, that.wholeName) &&
                Objects.equals(lon, that.lon) &&
                Objects.equals(lat, that.lat) &&
                Objects.equals(cityCode, that.cityCode) &&
                Objects.equals(zipCode, that.zipCode) &&
                Objects.equals(areaCode, that.areaCode) &&
                Objects.equals(pinyin, that.pinyin) &&
                Objects.equals(simplePY, that.simplePY) &&
                Objects.equals(perPY, that.perPY);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, parentId, level, name, wholeName, lon, lat, cityCode, zipCode, areaCode, pinyin, simplePY, perPY);
    }
}
